This patch adds two macros for construction of the
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 1 Aug 2005 09:26:51 +0000 (09:26 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 1 Aug 2005 09:26:51 +0000 (09:26 +0000)
commit7edf4b7901c4d638761dc176d1b54c5ef1f4a39a
tree06c0781c12186eb9212d2228eab8e362beb3afd4
parent74e414904aae8e4fb76e59f7f7ae15bde84ee20b
This patch adds two macros for construction of the
frame_and_sectors field in blkif messages, to eliminate the
"magic shifts" in the blkif code.

It also increases the number of bits representing the sector
number within a page, from 3 to 5, to allow page sizes up to
16K (needed for IA64).

Tested to still work on x86.

Signed-off-by: Matthew Chapman <matthewc@hp.com>
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/drivers/xen/blkfront/vbd.c
xen/include/public/io/blkif.h